package InterfaceDemo;

public class Printer implements Device{
    private String mode1;
    public Printer(String mode1){
        this.mode1= mode1;
    }
    public void powerOn(){
        System.out.println(mode1 +"打印机开机，准备就绪");

    }

    public void powerOff(){
        System.out.println(mode1 +"打印机关机，以保存设置");
    }
    public void repair(){
        System.out.println(mode1 +"打印机报修");
    }
}
